package com.explore.xxx;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service //加@Configuration注解和@Service,ComponentScan  都可以被自动装配和主动注入
public class XXXConfig {
    public void say(){
        System.out.println("请你勇敢一点");
    }
}
